procedure Histogram(dataName : Str255;intervals : longint; min, max : real; useCustom : boolean; resultName : Str255);

Calculates the histogram of dataName and places the result in a 1D data window named resultName.

Also see:  CalcStats